package com.nj.dms.bean;

import java.util.Date;

/**
 * 定义User类
 * 
 * @author Administrator
 *
 */
public class User {

	private int id;
	private String name;
	private String userName;
	private String password;
	private int type;// 普通员工为1、管理员为2
	private Date birthday;
	private int sex;// 男为1、女为0
	private int branch;// 部门:人事部:1、财务部:2、研发部:3、市场部:4、销售部:5
	private Date addDate;
	private Date updateDate;

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", userName=" + userName + ", password=" + password + ", type="
				+ type + ", birthday=" + birthday + ", sex=" + sex + ", branch=" + branch + ", addDate=" + addDate
				+ ", updateDate=" + updateDate + "]";
	}

	public User(String name, String userName, String password, int type, Date birthday, int sex, int branch,
			Date addDate, Date updateDate) {
		super();
		this.name = name;
		this.userName = userName;
		this.password = password;
		this.type = type;
		this.birthday = birthday;
		this.sex = sex;
		this.branch = branch;
		this.addDate = addDate;
		this.updateDate = updateDate;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public User() {

	}

	public User(int id, String name, String password, int sex) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.sex = sex;
	}

	public User(String name, String userName, String password, int sex) {
		super();
		this.name = name;
		this.userName = userName;
		this.password = password;
		this.sex = sex;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getBranch() {
		return branch;
	}

	public void setBranch(int branch) {
		this.branch = branch;
	}

}
